/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ObjectClass;

/**
 *
 * @author Mikkel
 */
public class Customer {
    private int ID; 
    private int Phoneno;
    private String companyName;
    private String address;
    private String zipcode;
    private String city;

    public Customer(int ID, int Phoneno, String companyName, String address, String zipcode, String city) {
        this.ID = ID;
        this.Phoneno = Phoneno;
        this.companyName = companyName;
        this.address = address;
        this.zipcode = zipcode;
        this.city = city;
    }

    public Customer(int Phoneno, String companyName, String address, String zipcode, String city) {
        this.Phoneno = Phoneno;
        this.companyName = companyName;
        this.address = address;
        this.zipcode = zipcode;
        this.city = city;
    }
    

    public int getID() {
        return ID;
    }

    public int getPhoneNo() {
        return Phoneno;
    }

    public String getCompanyName() {
        return companyName;
    }

    public String getAddress() {
        return address;
    }

    public String getZipcode() {
        return zipcode;
    }

    public String getCity() {
        return city;
    }    

    public String toStringSQL() {
        return "(" + Phoneno + ", '" +companyName+ "', '" + address + "', '" + zipcode + "', '" + city + "')";
    }

    public String toString() {
        return Phoneno + "\n" + companyName + "\n" + address + "\n" + zipcode +  "\n" + city;
    }
}